import request from "./request";

//学生列表
export class StudentListApi {
    getStudentList({page, search, major}) {
        let data = {page, search, major}
        return request({url: '/api/v1/org/getStudentList', method: 'post', data})
    }

    //学生基本信息
    getStudentBasicInfo(student_id) {
        let data = {student_id}
        return request({url: '/api/v1/org/student/basics', method: 'post', data})
    }

    //学生课程
    getStudentCourse(page, student_id) {
        let data = {page, student_id}
        return request({url: '/api/v1/org/student/course', method: 'post', data})
    }

    //荣誉奖项
    getStudentAwards(student_id) {
        let data = {student_id}
        return request({url: '/api/v1/org/student/honor/awards', method: 'post', data})
    }

    //学生消课记录
    getStudentLessonLog(page, student_id) {
        let data = {page, student_id}
        return request({url: '/api/v1/org/student/remove/log', method: 'post', data})
    }

}
